package net.lab1024.sa.admin.module.business.displayModelLayer.domain.form;

import io.swagger.v3.oas.annotations.media.Schema;
import java.time.LocalDateTime;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * 页面 新建表单
 *
 * @Author 1
 * @Date 2025-07-04 09:28:47
 * @Copyright 1
 */

@Data
public class DisplayModelLayerAddForm {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "id 不能为空")
    private Integer id;

    @Schema(description = "创建时间")
    private LocalDateTime createdAt;

    @Schema(description = "更新时间")
    private LocalDateTime updatedAt;

    @Schema(description = "删除时间")
    private LocalDateTime deletedAt;

    @Schema(description = "模型id")
    private String modelId;

    @Schema(description = "页面名称")
    private String pageName;

    @Schema(description = "页面id")
    private String pageId;

    @Schema(description = "是否为首页", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否为首页 不能为空")
    private Integer isHome;

    @Schema(description = "页面类型", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "页面类型 不能为空")
    private Integer pageType;

    @Schema(description = "layer", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "layer 不能为空")
    private String layer;

    @Schema(description = "组件", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "组件 不能为空")
    private String components;

    @Schema(description = "是否登录页面")
    private Integer isLogin;

}